package com.test;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class test4 {

    public static void main(String[] args) {
        Runnable r=new Runnable() {
            @Override
            public void run() {
                System.out.println("来了");
            }
        };
        ExecutorService theadPool= Executors.newFixedThreadPool(700);
        for (int i=1;i<10;i++){
            Thread t=new Thread(r);
            theadPool.submit(t);  //里面线程一个接一个执行
        }

        System.out.println("这是最后执行的");
    }

}
